﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace ALS.Poco
{
    /// <summary>
    /// 自动物流工人表映射
    /// </summary>
    [Table("AlsWorker")]
    public class AlsWorkerPoco
    {
        /// <summary>
        /// 自增主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long AlsWorkerID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        [StringLength(64)]
        public string Name { get; set; }

        /// <summary>
        /// 服务器ID
        /// </summary>
        [Required]
        public int TcpServerID { get; set; }
    }
}
